package com.zhongxi.guoyuan.OffLineShop.Utils;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by wangx on 0016.
 */
public class IOUtils {

    /**
     * 关闭 资源  流对象 / Cursor
     * @param closeable
     */
    public static void close(Closeable closeable){
        if (closeable != null) {
            try {
                closeable.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
